<?php

namespace apiend\modules\attach\controllers;

use Yii;
use apiend\components\Controller;
use apiend\modules\attach\models\HomeDashboardLogic;

/**
 * APP首页默认接口
 * 
 * @author emhome <emhome@163.com>
 * @since 1.0
 */
class DefaultController extends Controller {

    /**
     * @inheritdoc
     */
    public $modelClass = HomeDashboardLogic::class;

    /**
     * @inheritdoc
     */
    protected function verbs() {
        return [
            '*' => ['GET']
        ];
    }

    /**
     * 功能信息
     * @inheritdoc
     */
    public function actionIndex() {
        /* @var $model HomeDashboardLogic */
        $model = new $this->modelClass;
        return $model->toArray();
    }

}
